package com.lijz.utils;


import com.baomidou.mybatisplus.core.toolkit.Sequence;

/**
 * Created by dben on 2017/5/22.
 */
public class IdGenerator {
    /**
     * 主机和进程的机器码
     */
    private static final Sequence worker = new Sequence();

    public static long getId() {
        return worker.nextId();
    }
}
